<?php

class Board_Space
{
    private $_name = '';
    private $_type = '';
    private $_next = null;

    public function __construct($name)
    {
        $this->setName($name);
    }

    public function next($space = null)
    {
        if ($space) {
            $this->_next = $space;
        }

        return $this->_next;
    }

    public function getName()
    {
        return $this->_name;
    }

    public function setName($name)
    {
        $this->_name = $name;
    }
}
